package com.qf.controller;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.context.annotation.Lazy;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    protected final Log logger = LogFactory.getLog(getClass());

    public TestController() {
        logger.info("==============TestController constructor==============");
    }

    @GetMapping("/test1")
    public String test1(){
        logger.error("~~~~~~~~~~~~test1~~~~~~~~~~~~~~~");
        return "test1";
    }


}
